<?php 
define("APPID","wx6d15a820e17234bb");
define("APPSECRET","df5d13c4c020b0f955899d0ce219bb99");
define("TOKEN","weixin888");
header("content-type:text/html;charset=utf-8");

require("./wechat.inc.php");
$wechat = new WeChat(APPID,APPSECRET,TOKEN);
$rs = $wechat->_addMedia('image','D:\wamp\www\weixin2\1.jpg');

?>